package com.xls.pet.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigDecimal;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serial;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 工单 实体类。
 *
 * @author xls
 * @since 2024-07-23
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("work_order")
public class WorkOrder implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Integer id;

    /**
     * 车辆名称
     */
    private String vehicleName;

    /**
     * 车牌号
     */
    private String plateNumber;

    /**
     * 责任
     */
    private String duty;

    /**
     * 客户名称
     */
    private String customerName;

    /**
     * 维修内容
     */
    private String repairContent;

    /**
     * 图片
     */
    private String image;

    /**
     * 定损状态
     */
    private Integer damageStatus;

    /**
     * 定损员
     */
    private String damageStaff;

    /**
     * 定损金额
     */
    private BigDecimal damageAmount;

    /**
     * 发票状态
     */
    private Integer invoiceStatus;

    /**
     * 施救费用
     */
    private String rescueAmount;

    /**
     * 实收金额
     */
    private BigDecimal receiveAmount;

    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private LocalDateTime updateTime;

}
